﻿using config3;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class FxConfigExtensions
    {
        public static IConfigurationBuilder AddFxConfig(this IConfigurationBuilder fx, string path = null)
        {
            if (path == null)
            {
                path = "web.config";
            }
            fx.Add(new FxConfigSource() { Path = path });
            return fx;
        }
    }
}
